Modeling an electronic device

ABSTRACT

For modeling a first device, a measured electrical behavior in at least one of time and frequency domain is received, wherein the measured electrical behavior at least substantially represents at least a portion of the electrical behavior of the first device. The first device is modeled by using a circuit with one or more circuit device, wherein each circuit device has a known model for its electrical behavior, and the circuit substantially represents the measured electrical behavior of the first device. The modeling comprises a step of approximating the measured signal response by sections of a curve.

BACKGROUND OF THE INVENTION

[0001] Modeling of electronic devices e.g. for simulation of electronic circuits comprising such devices, as known for example from the SPICE circuit simulation system, requires to know or reveal details about the internal construction of the device to be modeled. Often manufacturers of devices (like operational amplifiers) provide model parameter to be used in the SPICE system.

SUMMARY OF THE INVENTION

[0002] It is an object of the invention to provide an improved modeling of electronic devices. The object is solved by the independent claims. Preferred embodiments are given by the dependent claims.

[0003] According to the present invention it is not necessary to provide an analytical model describing the internal construction, but the measured (external) behavior of the device in time or frequency domain is used. In a preferred embodiment, the measured electrical behavior comprises a measured signal response on a predetermined electrical signal input to the device, and preferably comprises a measured signal response on a step signal.

[0004] The device can contain any kind of element like—for example—cables, board traces, connectors, packages, sockets, stubs, resistors, inductors or capacitors. Even multiple reflections or frequency dependent parameters like skin effect or dielectric losses can be characterized according to preferred embodiments.

[0005] In testing of modern high-speed electronic devices, e.g. in the frequency range of tenth to ten times GHz, the corresponding high-speed signal path e.g. between an Automated Test Equipment (ATE) and a Device Under Test (DUT) becomes relevant influence on the measured signals. In a preferred embodiment the device to be modeled is such high-speed signal path, which might be connected between the ATE and the DUT. The device to be modeled can also be a line drive output of such ATE, an n-port network, etc.

[0006] According to an embodiment, the device to be modeled can be characterized in the time domain by at least one of its pulse or step response. An ideal pulse allows characterizing the device to be modeled in the time domain. Such ideal pulse is infinitely short, infinitely high, has a predetermined energy, and is known as Dirac pulse. Such Dirac pulse, however, is often not sufficiently feasible in reality. Therefore, in a preferred embodiment a substantially ideal pulse or the response to a step input signal is used to build the model out of measurement data.

[0007] It is also possible to use the measured external behavior of the device in the frequency domain, e.g. using a vector-network-analyzer. For example, the step response can be calculated by an inverse Fourier transformation and subsequent integration of the resulting pulse response.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Other objects and many of the attendant advantages of the present invention will be readily appreciated and become better understood by reference to the following detailed description when considering in connection with the accompanied drawings. Features that are substantially or functionally equal or similar will be referred to with the same reference signs.

[0009]FIG. 1 shows stimulating incident waves into a 2-port network,

[0010]FIG. 2 shows the SPICE model of the 2-port network of FIG. 1,

[0011]FIG. 3 shows the model of a voltage adder,

[0012]FIG. 4 shows an example for an approximated step response,

[0013]FIG. 5 shows time and voltage values of the sampling points shown in FIG. 4,

[0014]FIG. 6 shows a SPICE model representing a step response, and

[0015]FIG. 7 shows how the four step responses of a 2-port network can be measured using a time domain reflection (TDR) oscilloscope.

MORE DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS ACCORDING TO THE INVENTION

[0016] Without limitation of the general inventive concept, in the following the invention is described on the example of a 2-port network with ports x and y. As known from systems theory such a 2-port network can be fully described by the so-called S-parameters in the frequency domain. In an analog manner, the network can also be described in the time domain by its step response according to the following convolution equations:

e _(R1)(t)=sr ₁₁(t)*e _(I1)′(t)+sr ₁₂(t)*e _(I2)′(t)  (1)

e _(R2)(t)=sr ₂₁(t)*e _(I1)′(t)+sr ₂₂(t)*e _(I2)′(t)  (2)

[0017] The term sr_(xy)(t) stands for the response at port x on a stimulation at port y with an ideal step signal. The term e_(Iy)′(t) stands for the first derivative of the incident wave into port x. The symbol “*” stands for the convolution.

[0018] To put the above equations (1) and (2) into a simple recipe: Take each little step the incident signal makes, multiply with the step response and delay the result by the time when your input step takes place. Summing everything together then generates the response to the input signal. The responses to each individual input signal can be added together according to the principal of superposition.

[0019]FIG. 1 shows stimulating incident waves into a 2-port network. The relationship between voltages and currents at the ports v1 a nd v2 of the network are defined by their characteristic impedances Z1 and Z2. Incident waves can be generated by external voltage sources:

e _(I1S)(t)=Z ₁/(Z _(S1) +Z ₁)×V _(S1)(t)  (3)

e _(I2S)(t)=Z ₂/(Z _(S2) +Z ₂)×V _(S2)(t)  (4)

[0020] or by reflections at the ports

e _(I1R)(t)=(Z _(S1) −Z ₁)/(Z _(S1) +Z ₁)×e _(R1)(t)  (5)

e _(I2R)(t)=(Z _(S2) −Z ₂)/(Z _(S2) +Z ₂)×e _(R2)(t)  (6)

[0021] According to the principle of superposition, it results from addition:

e _(I1)(t)=e _(I1S)(t)+e _(I2R)(t)  (7)

e _(I2)(t)=e _(I2S)(t)+e _(I2R)(t)  (8)

[0022] Thus, from systems theory it is clear how incident waves are generated by transmission line theory and how reflected waves are generated by convolution with step responses. This information can be used to construct a comprehensive model to be used in the SPICE system. Usually a 50-Ohm environment is given and therefore in the following the model is designed with 50-Ohm characteristic impedance at its ports. Any deviation from that value is regarded as internal effect and will show up in the step response part of the model.

[0023]FIG. 2 shows the SPICE model of the 2-port network of FIG. 1 and FIG. 3 shows the model of a voltage adder.

[0024] Calculating the incident waves from the schematic result into:

e _(I1)(t)=(Z ₁ ×v _(S1)(t)+(Z _(S1) −Z ₁)×e _(R1)(t))/(Z _(S1) +Z ₁)  (9)

e _(I2)(t)=(Z ₂ ×v _(S2)(t)+(Z _(S2) −Z ₂)×e _(R2)(t))/(Z _(S2) +Z ₂)  (10)

e _(R1)(t)=sr ₁₁(t)*e _(I1)′(t)+sr ₁₂(t)*e _(I2)′(t)  (11)

e _(R2)(t)=sr ₂₁(t)*e _(I1)′(t)+sr ₂₂(t)*e _(I2)′(t)  (12)

[0025] Using simple mathematics, it can be shown that these equations match with the calculated equations mentioned above.

[0026] Any arbitrary step response can be approximated with arbitrary accuracy by a section-wise linear curve like in the example shown in the top graph of FIG. 4. The corresponding sampling points for the approximation in this example have the time and voltage values listed in FIG. 5. In order to construct the step response, the incoming step s(t) is stripped down to the pulses p_(i)(t) having their transitions at the sampling points used for approximation. Those pulses are used to control current sources with a trans-conductance representing the slope in the corresponding section of the step response like depicted in FIG. 6.

[0027] The delays TD_(i) of the transmission lines T_(i)(i=1, 2, . . . , 8) represent the lengths of the construction pulses p_(i)(t):

TD _(i) =t _(i) −t _(i−1)  (13)

[0028] The differential input signals on the voltage controlled current sources G_(i) look like the construction pulses p_(i) in FIG. 4. The trans-conductances GT_(i) have to be:

GT _(i)=(V _(i) −V _(i−1))×C 1/(t _(i) −t _(i−1))  (14)

[0029] The resistors R1 and R2 define the DC path for the output voltage. They can be calculated from the end value of the step response:

R 2/(R 1+R 2)=sr(∞)/s(∞)=sr(∞)/1V  (15)

[0030] The time constant of the RC element

τ_(RC) =C 1×(R 1∥R 2)  (16)

[0031] has to be large enough so that the exponential loading curve does not interfere with the shape of the step response. A good value would be if the time constant were 1000 times larger that the time range between the first and the last sampling point. This limits the resulting voltage error of the simulated step response to below 0.1%.

[0032] With the SPICE model shown in FIG. 6 a circuit is created that has the step response needed for the device to be modeled. As the model is linear and time invariant, its response to any arbitrary input signal is equal to the response of the signal path to be characterized in the described embodiment.

[0033]FIG. 7 shows how the four step responses of a 2-port network can be measured using a time domain reflection (TDR) oscilloscope. The internal TDR source is dedicated to the first channel CH1. It generates a steep edge with a rise time in the order of 40 ps. This can be taken as an approximate ideal step scaled with a factor. The delay time relative to the internally generated oscilloscope trigger can be observed as the point in time on the scope graph of channel 1 where the edge starts.

[0034] Setup A places a short circuit at the end of cable 1 generating a reflection coefficient of −1. Channel 1 of the oscilloscope sees a pulse with a length that equals the round trip delay of cable 1. The delay of single trip of cable 1 can be easily determined by placing markers at the 50% points of the pulse edges and taking half of the time distance between the two markers.

[0035] In Setup B the two channels capture the same signal but on channel 2 (CH2) the combined delay of cable 1 and cable 2 takes effect. The delay of cable 2 can be determined by placing markers at the 50% points of the two channels, reading out the time distance and subtracting the delay time of cable 1.

[0036] The Setups A and B can be regarded as a calibration procedure.

[0037] In Setup C and Setup D the reflections at the stimulated port can be observed as superposition to the stimulating time domain reflection pulse on channel 1 of the oscilloscope with an additional roundtrip cable 1 delay. The transmitted signals can be observed on channel 2 with an additional delay of cable 2.

[0038] The four step responses can now be derived very easily from the measurement and from using equations representing the Setup A to Setup D described above.

[0039] Although the edge of a TDR edge is usually very fast, it certainly is not a perfect step. In order to eliminate the remaining distortions due to finite slew rate, possibly over- and undershoot and settling phase to final value, the ideal step response can be calculated from the measured stimulus and response by the method described below.

[0040] At first, the captured waveforms together with a shape of an ideal step starting at the same time as the stimulus have to be converted into a periodic shape by extending the measured date set with the same edge that has been mirrored at the average value of the first and the last sampling point.

[0041] The resulting signals can then be converted into the frequency domain via Fast Fourier Transformation (FFT). The transfer function results from the division from the output signal by the input signal. Multiplication of transfer function and the ideal step in the frequency domain gives the spectrum of the ideal step response that can be converted back into time domain via inverse FFT.

[0042] As the output voltage of the model shown in FIG. 2 is generated by integrating loading currents, the voltage error in the transient analysis strongly depends on the integration method and the time steps of the SPICE simulator. As a rule of thumb, the time step should be in the same order of magnitude as the delay time of the transmission lines in the step response model. Depending of which simulator is used, there may be a lot more options controlling simulation accuracy. The best way to test those parameters is to stimulate the model with a single edge and verify if the final value is close enough to the theoretical end voltage.

[0043] Differing from the comprehensive model shown in FIG. 2 there are applications where not all step responses are of interest and for such applications the model can be drastically simplified. In many cases only the transmission of a signal from port 1 to port 2 is necessary. This is the case for example for an environment with 50-Ohm terminations at both ends or for signal paths with only small reflections. In such cases, the responses sr11, sr21, and sr22 can be neglected and deleted from the model. The measurement effort and the model complexity are strongly reduced.

[0044] Another example for the device to be modeled is a line driver controlled by a digital input signal. In this case, there is no response at the control input to anything happening at the output. Therefore s12 and s11 are not necessary.

[0045] Similar to S-parameters in the frequency domain, step responses can be used to characterize n-port networks with n>2. For example, coupled transmission lines for differential signaling would be an application for it.

[0046] In summary, the present invention introduces a new method of modeling linear and time invariant devices like signal paths or n-port networks. The principle has been derived from basic transmission line and systems theory and is based on step response measurement with a TDR oscilloscope. It has been validated by the means of a SPICE simulation showing the correlation between an arbitrarily chosen signal path model and the corresponding step response model. 

1. A method for modeling a first device, the method comprising the steps of: (a) receiving a measured electrical behavior in at least one of time and frequency domain, the measured electrical behavior at least substantially represents at least a portion of the electrical behavior of the first device, and (b) modeling the first device by using a circuit with one or more circuit device, wherein each circuit device has a known model for its electrical behavior, and the circuit substantially represents the measured electrical behavior of the first device; wherein the step b comprises a step of: approximating the measured signal response by sections of a curve, preferably by sections of a section-wise substantially linear curve.
 2. The method of claim 1, wherein the measured electrical behavior comprises at least one of a group comprising: a measured signal response on a predetermined electrical signal provided as stimulus signal to the first device, a response on a step signal, so that the measured electrical behavior comprises a step response.
 3. The method of claim 1, wherein the step b comprises a step of: delimiting the sections by sampling points of the signal response preferably being time-sampled.
 4. The method of claim 1, wherein the step b comprises a step of: modeling the section-wise curve by pulses, each pulse having a transition substantially in the range between neighboring sections, each pulse is controlling at least one of a current or voltage source which output signal corresponds with a slope of a respective section of the section-wise curve, the output signals of the sources are superimposed to form the approximated section-wise curve.
 5. The method of claim 1, wherein the step of modeling the section-wise curve comprises: modeling a pulse unit adapted for providing a plurality of pulses, wherein each pulse has a first transition substantially in the range of a start of a corresponding section and a second transition substantially in the range of an end of the corresponding section, and modeling an integrating unit adapted for receiving the plurality of pulses or corresponding signals derived therefrom and integrating them to substantially form the approximated section-wise curve.
 6. The method of claim 1, comprising the step of: calculating an at least substantially ideal step response from a measured real step signal having finite slew rate and from the measured response on the real step signal.
 7. The method of claim 6, using at least one of Fourier Transformation and Fast Fourier Transformation for calculating the ideal step response.
 8. The method of claim 1, further comprising a step of using the model of the first device in at least one of a simulation system and a SPICE simulation system.
 9. The method of claim 1, wherein the first device is at least one of: a substantially linear device, a substantially time-invariant device, an electrical device, an electronic device, a signal path, a high-speed signal path, a line drive output, a line drive output of an automated test equipment, an n-port network.
 10. The method of claim 1, wherein the electrical behavior of the first device is measured using at least one of a time domain reflection measurement and a time domain transmission measurement.
 11. The method of claim 1, further comprising the step of: measuring the electrical behavior of the first device in at least one of time and frequency domain.
 12. The method of claim 1, wherein the step b comprises a step of: approximating the measured signal response by sections of a section-wise substantially linear curve.
 13. A software program or product, preferably stored on a data carrier, for executing the method of claim 1 when running on a data processing system such as a computer.
 14. A system for simulating electronic circuits using a model of a first device, being a linear time invariant electrical or electronic device, e.g. a signal path or a n-port network, the model of the first device being modeled according to the method of claim 1 or any one of above claims.
 15. A system for modeling a first device, comprising: a receiver adapted for receiving a measured electrical behavior in at least one of time and frequency domain, the measured electrical behavior at least substantially represents at least a portion of the electrical behavior of the first device, and a modeling unit adapted for modeling the first device by using a circuit with one or more circuit device, wherein each circuit device has a known model for its electrical behavior, and the circuit substantially represents the measured electrical behavior of the first device, and wherein the modeling unit is adapted for approximating the measured signal response by sections of a curve.
 16. The system of claim 15, further comprising: a measuring unit adapted for measuring the electrical behavior of the first device in at least one of time and frequency domain. 